home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-11-30 | 1.2 KB | 31 lines | [TEXT/R*ch] |
- Name: CDecimalText
- Version: 1.0
- Category: classes
- Contributor: Michael Abramowicz <MBABRAMOWICZ@AMHERST.EDU>
- Date: 93-07-06
- TCL-Version: 1.1.3
- TCL-Language: C++
- Copyright: Copyright (C) 1993 Michael Abramowicz. All rights reserved.
-
- A subclass of CDialogText that accepts only decimal entries. Any
- characters are accepted as the user types, and the entry is checked
- at validation. Validation occurs when the user tabs out of the field
- or tries to confirm the dialog.
-
- CDecimalText can constrain values to a certain number of decimal
- places. If 0 decimal places are allowed, then users may enter
- only integers. If more than 0 decimal places are allowed, then
- users may enter numbers of only so many decimal places. To allow
- entry of any number, allow 50 decimal places, for example.
-
- SANE is used to to convert the text to a number because it provides
- Script Manager support.
-
- As a subclass of CDialogText, CDecimalText fields may or not be required
- and have a maximum allowed length. Required fields are considered invalid
- if left empty. Additionally CDecimalText fields may have a default value,
- which is the value returned if the text is empty. They also have a
- minimum and maximum allowed value.
-
- To use this class, you must include the SANE library in your project.
-